﻿using AwesomeChromeFormUI.Constants;
using System.Drawing;
using System.Windows.Forms;

namespace AwesomeChromeFormUI.Configs
{
    public class MainViewConfiguration
    {
        /// <summary>
        /// 宽度
        /// </summary>
        public int Width { get; set; }
        /// <summary>
        /// 高度
        /// </summary>
        public int Height { get; set; }
        /// <summary>
        /// 标题文本
        /// </summary>
        public string Text { get; set; }
        /// <summary>
        /// Logo
        /// </summary>
        public Icon Icon { get; set; }
        /// <summary>
        /// 窗口边框样式
        /// </summary>
        public FormBorderStyle FormBorderStyle { get; set; }
        /// <summary>
        /// 启动位置
        /// </summary>
        public FormStartPosition StartPosition { get; set; }
        /// <summary>
        /// 窗口状态
        /// </summary>
        public FormWindowState WindowState { get; set; }

        public MainViewConfiguration()
        {
            this.Width = MainViewConstant.DEFAULT_WIDTH;
            this.Height = MainViewConstant.DEFAULT_HEIGHT;
            this.Text = MainViewConstant.DEFAULT_TITLE;
            this.Icon = new Icon(MainViewConstant.DEFAULT_ICON);
            this.StartPosition = FormStartPosition.CenterScreen;
            this.FormBorderStyle = FormBorderStyle.Sizable;
            this.WindowState = FormWindowState.Normal;
        }
    }
}
